package acwing.模拟;

/**
 * main
 *
 * @author yang
 * @date 2021/12/17
 */
public class Main {

    public static void main(String[] args) {

        for (int i = 100; i <= 999; i++) {
            int x = i % 10,y = i / 10 % 10,z = i / 100 % 10;
            if ((x * x * x) + (y * y * y) + (z * z * z) == i) {
                System.out.println(i);
            }
        }

    }
}
